<?php
include 'mysql.php';
$cud = @$_POST['name'];
if($cud == "")
{
	exit("非法的访问！用户名为空（仅供测试使用");
}
else
{
	$sql_2 = "select * from user where number = '$cud' ";
	$result_2 = mysqli_query($link,$sql_2);
	$row_2 = mysqli_num_rows($result_2);
	if(!$row_2)
	{
		exit("非法的访问！不存在的用户名（仅供测试使用");
	}
}
echo '<div id="wrapper">';
echo '<div id="center">';
echo '<div id="leftOptionWrapper">';
echo '<div class="leftOption"><a href="#one"><img src="images/porridge.png" alt="粥" width="30" height="30">&nbsp;粥</a></div>';
echo '<div class="leftOption"><a href="#two"><img src="images/snack.png" alt="粉" width="30" height="30">&nbsp;粉</a></div>';
echo '<div class="leftOption"><a href="#three"><img src="images/bread.png" alt="面" width="30" height="30">&nbsp;面</a></div>';
echo '<div class="leftOption"><a href="#four"><img src="images/milk.png" alt="牛奶" width="30" height="30">&nbsp;牛奶</a></div>';
echo '<div class="leftOption"><a href="#five"><img src="images/egg.png" alt="其他" width="30" height="30">&nbsp;其他</a></div>';
echo '</div>';//leftOptionWrapper的结尾
//购物车
echo '<div id="shopin">';
echo '<p>购物车</p>';
echo '</div>';
/*************************************************购物车结尾***************************************/
/*清空和全选的button*/
echo '<div id="button_group"><button type="button" id="empty">清空</button><button type="button" id="allCheckbox">全选</button></div>';

/********************清空和全选的button的结束******************/

//下面是右边的点餐结构
echo '<div class="right">';//这是右边的开始
echo '<a name="one">';//第一个锚点链接的开始
echo '<div id="right_one" class="WandH">';//右边的第一个块的开始
echo '<p>--粥</p>';
echo '<div class="produckWandH"><img src="images/egg.png" alt=""><p><input type="checkbox" value="2" class="produck" name="白米粥">白米粥2￥</p></div>';
echo '<div class="produckWandH"><img src="images/皮蛋粥.png" alt=""><p><input type="checkbox" value="4" class="produck" name="皮蛋粥">皮蛋粥4￥</p></div>';
echo '<div class="produckWandH"><img src="images/egg.png" alt=""><p><input type="checkbox" value="4" class="produck" name="瘦肉粥">瘦肉粥4￥</p></div>';
echo '<div class="produckWandH"><img src="images/egg.png" alt=""><p><input type="checkbox" value="6" class="produck" name="海马粥">海马粥6￥</p></div>';
echo '</div>';//右边的第一个块结束
echo '</a>';//第一个锚点链接的结束
//第二个锚点的开始
echo '<a name="two">';
echo '<div id="right_two" class="WandH">';
echo '<p>--粉</p>';
echo '<div class="produckWandH"><img src="images/肉肠.png" alt=""><p><input type="checkbox" value="4" class="produck" name="肉肠粉">肉肠粉4￥</p></div>';
echo '<div class="produckWandH"><img src="images/虾仁肉肠.png" alt=""><p><input type="checkbox" value="8" class="produck" name="虾仁肉肠">虾仁肉肠8￥</p></div>';
echo '<div class="produckWandH"><img src="images/egg.png" alt=""><p><input type="checkbox" value="6" class="produck" name="蛋肉肠粉">蛋肉肠粉6￥</p></div>';
echo '<div class="produckWandH"><img src="images/egg.png" alt=""><p><input type="checkbox" value="4" class="produck" name="猪肠碌">猪肠碌4￥</p></div>';
echo '</div>';//right_two的结束
echo '</a>';//第二个锚点的结束 two的结束
//这是锚点three的开始
echo '<a name="three">';
echo '<div id="right_three" class="WandH">';
echo '<p>--面</p>';
echo '<div class="produckWandH"><img src="images/egg.png" alt=""><p><input type="checkbox" value="3" class="produck" name="肉包">肉包*2|3￥</p></div>';
echo '<div class="produckWandH"><img src="images/馄饨.png" alt=""><p><input type="checkbox" value="7" class="produck" name="馄饨">馄饨7￥</p></div>';
echo '<div class="produckWandH"><img src="images/煎饺.png" alt=""><p><input type="checkbox" value="6" class="produck" name="煎饺">煎饺6￥</p></div>';
echo '<div class="produckWandH"><img src="images/小笼包.png" alt=""><p><input type="checkbox" value="6" class="produck" name="小笼包">小笼包*4|6￥</p></div>';
echo '</div>';//这是第三个块的结尾
echo '</a>';//这是锚点three的结尾
//这是锚点four的开始
echo '<a name="four">';
echo '<div id="right_four" class="WandH">';//这是第四个块
echo '<p>--牛奶</p>';
echo '<div class="produckWandH"><img src="images/egg.png" alt=""><p><input type="checkbox" value="5" class="produck" name="特仑苏">特仑苏5￥</p></div>';
echo '<div class="produckWandH"><img src="images/金典.png" alt=""><p><input type="checkbox" value="5.5" class="produck" name="金典">金典5.5￥</p></div>';
echo '<div class="produckWandH"><img src="images/安慕希.png" alt=""><p><input type="checkbox" value="6" class="produck" name="安慕希">安慕希6￥</p></div>';
echo '<div class="produckWandH"><img src="images/egg.png" alt=""><p><input type="checkbox" value="4" class="produck" name="纯牛奶">纯牛奶4￥</p></div>';
echo '</div>';//这是第四个块的结束
echo '</a>';//这是four的结束
//这是five的开始
echo '<a name="five">';
echo '<div id="right_five" class="WandH">';
echo '<p>--其他</p>';
echo '<div class="produckWandH"><img src="images/榴莲千层.png" alt=""><p><input type="checkbox" value="18" class="produck" name="榴莲千层">榴莲千层18￥</p></div>';
echo '<div class="produckWandH"><img src="images/烧麦.png" alt=""><p><input type="checkbox" value="6" class="produck" name="烧麦">烧麦6￥</p></div>';
echo '<div class="produckWandH"><img src="images/糯米鸡.png" alt=""><p><input type="checkbox" value="6" class="produck" name="糯米鸡">糯米鸡6￥</p></div>';
echo '<div class="produckWandH"><img src="images/豆浆.png" alt=""><p><input type="checkbox" value="3.5" class="produck" name="豆浆">豆浆3.5￥</p></div>';
echo '</div>';
echo '</a>';//这里是five的结束
echo '</div>';//这是right的结尾
echo '</div>';//这是center的结尾
//提交按钮的位置
echo '<div id="button_submit"><form action="" method="post" id="form_up"><span>总价格为：</span><span id="add"><!-- 这里放置价格 --></span><input type="button" value="提交" id="button_add"></form></div>';
echo '</div>';//这是最大的块的结尾
?>